﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TiTi.tea.Comm
{
    public class PagePara
    {
        public int PageSize { get; set; } = 10;
        public int PageIndex { get; set; } = -1;
        public int Total { get; set; }

        public PagePara() { }
        public PagePara(int PageSize, int PageIndex)
        {
            this.PageSize = PageSize;
            this.PageIndex = PageIndex;
        }
        public int GetSkip()
        {
            return PageSize * (PageIndex - 1);
        }
    }
}
